﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Fashion.Master" Inherits="System.Web.Mvc.ViewPage<Fashion.Models.ProductCategory>" %>
<%@ Import Namespace="A" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%=Model.Name %>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="head" runat="server">
    <link href="/Content/categorydetail.css" rel="stylesheet" type="text/css" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="view-category">
        <%foreach (var product in Model.Products.Where(i => i.Active)){%>
            <div class="item-product radius-5px">
                <a href="/product/detail/<%=product.Id %>">
                <img src="<%=product.ProductImages.FirstOrDefault(i=>i.IsMain).FilePath %>" alt="Alternate Text" />
                <p class='price'>Giá: <%=product.Price.DisplayMoney()%> <%=product.Currency %></p>
                </a>
            </div>
        <%}%>
    </div>    
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="SubContent" runat="server">
    <%Html.RenderAction("UsrCategory","Base"); %>
</asp:Content>
